/ Developer CD Series 2000 May: Tool Chest
/ Dev.CD May 00 TC.toast / pc / tool chest / macapp / ad lib 2.6.5 / install ad lib 2.6.5 / Ad Lib 2.6.5 / MacApp Extensions / UCmdKeyBehavior.h ![]() | < prev | next > |
MacBinary | 1997-06-20 | 2.3 KB | [TEXT/CWIE] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Fri Jun 20 17:14:07 1997, modified Fri Jun 20 17:14:07 1997, creator 'CWIE', type ASCII, 1602 bytes "UCmdKeyBehavior.h" , at 0x6c2 428 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [CWIE] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 55 43 6d 64 4b 65 | 79 42 65 68 61 76 69 6f |..UCmdKe|yBehavio|
|00000010| 72 2e 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.h.....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 06 42 00 | 00 01 ac af d0 a3 1f af |......B.|........|
|00000060| d0 a3 1f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b2 9c 00 00 |........|........|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 55 43 6d 64 4b 65 |#ifndef |__UCmdKe|
|00000090| 79 42 65 68 61 76 69 6f | 72 5f 5f 0d 23 64 65 66 |yBehavio|r__.#def|
|000000a0| 69 6e 65 20 5f 5f 55 43 | 6d 64 4b 65 79 42 65 68 |ine __UC|mdKeyBeh|
|000000b0| 61 76 69 6f 72 5f 5f 0d | 0d 0d 23 69 66 6e 64 65 |avior__.|..#ifnde|
|000000c0| 66 20 5f 5f 4d 61 63 41 | 70 70 43 6f 6d 70 61 74 |f __MacA|ppCompat|
|000000d0| 69 62 69 6c 69 74 79 5f | 5f 0d 23 69 6e 63 6c 75 |ibility_|_.#inclu|
|000000e0| 64 65 20 22 4d 61 63 41 | 70 70 43 6f 6d 70 61 74 |de "MacA|ppCompat|
|000000f0| 69 62 69 6c 69 74 79 2e | 68 22 0d 23 65 6e 64 69 |ibility.|h".#endi|
|00000100| 66 0d 0d 63 6f 6e 73 74 | 20 49 44 54 79 70 65 09 |f..const| IDType.|
|00000110| 6b 43 6d 64 4b 65 79 53 | 69 67 6e 61 74 75 72 65 |kCmdKeyS|ignature|
|00000120| 20 3d 20 27 63 6b 65 79 | 27 3b 0d 0d 0d 2f 2f 2f | = 'ckey|';...///|
|00000130| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000140| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 20 54 43 6d |////////|//// TCm|
|00000150| 64 4b 65 79 42 65 68 61 | 76 69 6f 72 20 2f 2f 2f |dKeyBeha|vior ///|
|00000160| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000170| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 0d 2f 2f 0d |////////|////.//.|
|00000180| 2f 2f 09 41 20 62 65 68 | 61 76 69 6f 72 20 77 68 |//.A beh|avior wh|
|00000190| 69 63 68 20 74 72 69 67 | 67 65 72 73 20 61 20 63 |ich trig|gers a c|
|000001a0| 6f 6e 74 72 6f 6c 20 77 | 68 65 6e 20 74 68 65 20 |ontrol w|hen the |
|000001b0| 63 6f 6d 6d 61 6e 64 20 | 6b 65 79 20 65 71 75 69 |command |key equi|
|000001c0| 76 61 6c 65 6e 74 20 69 | 73 20 72 65 63 69 65 76 |valent i|s reciev|
|000001d0| 65 64 2e 0d 2f 2f 0d 0d | 63 6c 61 73 73 20 54 43 |ed..//..|class TC|
|000001e0| 6d 64 4b 65 79 42 65 68 | 61 76 69 6f 72 20 3a 20 |mdKeyBeh|avior : |
|000001f0| 70 75 62 6c 69 63 20 54 | 42 65 68 61 76 69 6f 72 |public T|Behavior|
|00000200| 0d 7b 0d 23 69 66 20 71 | 4d 61 63 41 70 70 56 65 |.{.#if q|MacAppVe|
|00000210| 72 73 69 6f 6e 20 3e 20 | 33 30 0d 09 4d 41 5f 44 |rsion > |30..MA_D|
|00000220| 45 43 4c 41 52 45 5f 43 | 4c 41 53 53 3b 0d 23 65 |ECLARE_C|LASS;.#e|
|00000230| 6e 64 69 66 0d 0d 09 70 | 75 62 6c 69 63 3a 0d 0d |ndif...p|ublic:..|
|00000240| 23 69 66 64 65 66 20 48 | 41 4e 44 4c 45 5f 42 41 |#ifdef H|ANDLE_BA|
|00000250| 53 45 44 5f 4f 42 4a 45 | 43 54 53 0d 09 09 56 49 |SED_OBJE|CTS...VI|
|00000260| 52 54 55 41 4c 20 76 6f | 69 64 09 09 09 09 09 09 |RTUAL vo|id......|
|00000270| 49 6e 69 74 69 61 6c 69 | 7a 65 28 29 3b 0d 23 65 |Initiali|ze();.#e|
|00000280| 6c 69 66 20 71 4d 61 63 | 41 70 70 56 65 72 73 69 |lif qMac|AppVersi|
|00000290| 6f 6e 20 3c 3d 20 33 33 | 0d 09 09 09 09 09 09 09 |on <= 33|........|
|000002a0| 09 09 09 09 09 09 09 54 | 43 6d 64 4b 65 79 42 65 |.......T|CmdKeyBe|
|000002b0| 68 61 76 69 6f 72 28 29 | 3b 0d 23 65 6c 73 65 0d |havior()|;.#else.|
|000002c0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 54 43 |........|......TC|
|000002d0| 6d 64 4b 65 79 42 65 68 | 61 76 69 6f 72 28 49 44 |mdKeyBeh|avior(ID|
|000002e0| 54 79 70 65 20 69 74 73 | 49 64 65 6e 74 69 66 69 |Type its|Identifi|
|000002f0| 65 72 20 3d 20 6b 4e 6f | 49 64 65 6e 74 69 66 69 |er = kNo|Identifi|
|00000300| 65 72 5f 41 43 2c 20 63 | 68 61 72 20 63 6d 64 4b |er_AC, c|har cmdK|
|00000310| 65 79 20 3d 20 27 5c 30 | 27 29 3b 0d 23 65 6e 64 |ey = '\0|');.#end|
|00000320| 69 66 0d 0d 23 69 66 20 | 71 4d 61 63 41 70 70 56 |if..#if |qMacAppV|
|00000330| 65 72 73 69 6f 6e 20 3c | 3d 20 33 33 0d 09 09 56 |ersion <|= 33...V|
|00000340| 49 52 54 55 41 4c 20 76 | 6f 69 64 09 09 09 09 09 |IRTUAL v|oid.....|
|00000350| 09 49 43 6d 64 4b 65 79 | 42 65 68 61 76 69 6f 72 |.ICmdKey|Behavior|
|00000360| 28 49 44 54 79 70 65 20 | 69 74 73 49 64 65 6e 74 |(IDType |itsIdent|
|00000370| 69 66 69 65 72 2c 20 63 | 68 61 72 20 63 6d 64 4b |ifier, c|har cmdK|
|00000380| 65 79 29 3b 0d 23 65 6e | 64 69 66 0d 0d 09 09 56 |ey);.#en|dif....V|
|00000390| 49 52 54 55 41 4c 20 76 | 6f 69 64 09 09 09 09 09 |IRTUAL v|oid.....|
|000003a0| 09 44 6f 43 6f 6d 6d 61 | 6e 64 4b 65 79 45 76 65 |.DoComma|ndKeyEve|
|000003b0| 6e 74 28 54 54 6f 6f 6c | 62 6f 78 45 76 65 6e 74 |nt(TTool|boxEvent|
|000003c0| 2a 20 65 76 65 6e 74 29 | 3b 0d 09 09 56 49 52 54 |* event)|;...VIRT|
|000003d0| 55 41 4c 20 76 6f 69 64 | 09 09 09 09 09 09 44 6f |UAL void|......Do|
|000003e0| 4b 65 79 45 76 65 6e 74 | 28 54 54 6f 6f 6c 62 6f |KeyEvent|(TToolbo|
|000003f0| 78 45 76 65 6e 74 2a 20 | 65 76 65 6e 74 29 3b 0d |xEvent* |event);.|
|00000400| 09 09 56 49 52 54 55 41 | 4c 20 49 44 54 79 70 65 |..VIRTUA|L IDType|
|00000410| 09 09 09 09 09 47 65 74 | 53 74 61 6e 64 61 72 64 |.....Get|Standard|
|00000420| 53 69 67 6e 61 74 75 72 | 65 28 29 20 43 4f 4e 53 |Signatur|e() CONS|
|00000430| 54 3b 0d 09 09 56 49 52 | 54 55 41 4c 20 76 6f 69 |T;...VIR|TUAL voi|
|00000440| 64 09 09 09 09 09 09 52 | 65 61 64 46 72 6f 6d 28 |d......R|eadFrom(|
|00000450| 54 53 74 72 65 61 6d 2a | 20 73 74 72 65 61 6d 29 |TStream*| stream)|
|00000460| 3b 0d 09 09 56 49 52 54 | 55 41 4c 20 76 6f 69 64 |;...VIRT|UAL void|
|00000470| 09 09 09 09 09 09 53 65 | 74 4f 77 6e 65 72 28 54 |......Se|tOwner(T|
|00000480| 45 76 65 6e 74 48 61 6e | 64 6c 65 72 2a 20 69 74 |EventHan|dler* it|
|00000490| 73 4f 77 6e 65 72 29 3b | 0d 09 09 56 49 52 54 55 |sOwner);|...VIRTU|
|000004a0| 41 4c 20 76 6f 69 64 09 | 09 09 09 09 09 57 72 69 |AL void.|.....Wri|
|000004b0| 74 65 54 6f 28 54 53 74 | 72 65 61 6d 2a 20 73 74 |teTo(TSt|ream* st|
|000004c0| 72 65 61 6d 29 20 43 4f | 4e 53 54 3b 0d 0d 09 09 |ream) CO|NST;....|
|000004d0| 56 49 52 54 55 41 4c 20 | 63 68 61 72 09 09 09 09 |VIRTUAL |char....|
|000004e0| 09 09 47 65 74 4b 65 79 | 28 29 3b 0d 09 09 20 20 |..GetKey|();... |
|000004f0| 20 20 20 20 20 20 76 6f | 69 64 09 09 09 09 09 09 | vo|id......|
|00000500| 53 65 74 4b 65 79 28 63 | 68 61 72 20 6e 65 77 4b |SetKey(c|har newK|
|00000510| 65 79 29 3b 0d 09 09 56 | 49 52 54 55 41 4c 20 42 |ey);...V|IRTUAL B|
|00000520| 6f 6f 6c 65 61 6e 09 09 | 09 09 09 44 6f 65 73 43 |oolean..|...DoesC|
|00000530| 6d 64 4b 65 79 4f 6e 6c | 79 28 29 3b 0d 09 09 56 |mdKeyOnl|y();...V|
|00000540| 49 52 54 55 41 4c 20 76 | 6f 69 64 09 09 09 09 09 |IRTUAL v|oid.....|
|00000550| 09 53 65 74 43 6d 64 4b | 65 79 4f 6e 6c 79 28 42 |.SetCmdK|eyOnly(B|
|00000560| 6f 6f 6c 65 61 6e 20 75 | 73 65 43 6d 64 4b 65 79 |oolean u|seCmdKey|
|00000570| 4f 6e 6c 79 29 3b 0d 0d | 09 70 72 69 76 61 74 65 |Only);..|.private|
|00000580| 3a 0d 09 09 56 49 52 54 | 55 41 4c 20 76 6f 69 64 |:...VIRT|UAL void|
|00000590| 09 09 09 09 09 09 53 65 | 6e 64 44 65 66 61 75 6c |......Se|ndDefaul|
|000005a0| 74 45 76 65 6e 74 28 29 | 3b 0d 0d 09 09 09 09 09 |tEvent()|;.......|
|000005b0| 09 63 68 61 72 09 09 09 | 09 09 09 66 4b 65 79 2c |.char...|...fKey,|
|000005c0| 09 09 09 09 09 09 09 2f | 2f 20 74 68 65 20 6c 6f |......./|/ the lo|
|000005d0| 77 65 72 2d 63 61 73 65 | 20 6b 65 79 20 76 61 6c |wer-case| key val|
|000005e0| 75 65 0d 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |ue......|........|
|000005f0| 09 66 53 68 69 66 74 65 | 64 4b 65 79 3b 09 09 09 |.fShifte|dKey;...|
|00000600| 2f 2f 20 74 68 65 20 75 | 70 70 65 72 2d 63 61 73 |// the u|pper-cas|
|00000610| 65 20 6b 65 79 20 76 61 | 6c 75 65 0d 09 09 09 09 |e key va|lue.....|
|00000620| 09 09 42 6f 6f 6c 65 61 | 6e 09 09 09 09 09 66 43 |..Boolea|n.....fC|
|00000630| 6f 6d 6d 61 6e 64 4b 65 | 79 4f 6e 6c 79 3b 09 2f |ommandKe|yOnly;./|
|00000640| 2f 20 72 65 73 70 6f 6e | 64 20 74 6f 20 63 6f 6d |/ respon|d to com|
|00000650| 6d 61 6e 64 20 6b 65 79 | 20 63 6f 6d 62 69 6e 61 |mand key| combina|
|00000660| 74 69 6f 6e 20 6f 6e 6c | 79 0d 09 09 09 09 09 09 |tion onl|y.......|
|00000670| 54 45 76 65 6e 74 48 61 | 6e 64 6c 65 72 2a 09 66 |TEventHa|ndler*.f|
|00000680| 42 61 63 6b 75 70 4f 77 | 6e 65 72 3b 09 09 09 2f |BackupOw|ner;.../|
|00000690| 2f 20 61 20 62 61 63 6b | 75 70 20 63 6f 70 79 20 |/ a back|up copy |
|000006a0| 6f 66 20 74 68 65 20 62 | 65 68 61 76 69 6f 72 27 |of the b|ehavior'|
|000006b0| 73 20 6f 77 6e 65 72 0d | 7d 3b 0d 0d 23 65 6e 64 |s owner.|};..#end|
|000006c0| 69 66 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |if......|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 5a | 00 00 00 5a 00 00 00 52 |.......Z|...Z...R|
|00000710| 54 56 69 65 77 46 53 63 | 6c 52 62 00 02 e2 57 72 |TViewFSc|lRb...Wr|
|00000720| 69 74 65 54 6f 44 65 73 | 6b 53 63 72 61 70 5f 5f |iteToDes|kScrap__|
|00000730| 11 55 43 6d 64 4b 65 79 | 42 65 68 61 76 69 6f 72 |.UCmdKey|Behavior|
|00000740| 2e 68 70 79 2e 68 77 73 | 65 77 73 63 65 73 78 6c |.hpy.hws|ewscesxl|
|00000750| 02 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 b1 75 e9 eb 00 00 | 00 00 00 00 01 ac 5f 35 |...u....|......_5|
|00000780| 54 56 69 65 77 46 76 00 | 04 ec 53 65 74 54 61 72 |TViewFv.|..SetTar|
|00000790| 67 65 74 53 65 6c 65 63 | 74 69 6f 6e 5f 5f 35 54 |getSelec|tion__5T|
|000007a0| 56 69 65 77 46 62 00 02 | fc 56 61 6c 69 64 61 74 |ViewFb..|.Validat|
|000007b0| 69 6f 6e 46 61 69 6c 65 | 64 5f 5f 35 54 56 69 65 |ionFaile|d__5TVie|
|000007c0| 77 46 6c 00 04 f4 47 65 | 74 56 61 6c 69 64 61 74 |wFl...Ge|tValidat|
|000007d0| 69 6f 6e 45 72 72 6f 72 | 5f 5f 35 54 56 69 65 77 |ionError|__5TView|
|000007e0| 46 76 00 01 c8 57 61 6e | 74 73 54 6f 42 65 54 61 |Fv...Wan|tsToBeTa|
|000007f0| 72 67 65 74 5f 5f 35 54 | 56 69 65 77 46 76 00 03 |rget__5T|ViewFv..|
|00000800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 02 | 00 04 01 0f 01 28 03 16 |........|.....(..|
|00000830| 03 83 01 0f 01 28 03 16 | 03 83 af d1 5f 25 00 00 |.....(..|...._%..|
|00000840| 06 42 00 00 06 42 00 00 | 01 58 01 00 00 00 00 02 |.B...B..|.X......|
|00000850| 00 00 00 00 00 04 00 01 | 00 01 00 00 01 00 00 00 |........|........|
|00000860| 01 5a 00 00 00 5a 00 00 | 00 52 02 68 12 88 1a 14 |.Z...Z..|.R.h....|
|00000870| 00 00 00 1c 00 52 00 01 | 4d 50 53 52 00 01 00 12 |.....R..|MPSR....|
|00000880| 4d 57 42 42 00 00 00 2a | 03 ed ff ff 00 00 00 00 |MWBB...*|........|
|00000890| 00 00 00 00 03 ef ff ff | 00 00 00 4c 00 00 00 00 |........|...L....|
|000008a0| 03 f0 ff ff 00 00 00 52 | 00 00 00 00 00 00 00 00 |.......R|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+